/**
 * 
 */
package pt.inescid.components.console.commands;

import pt.inescid.components.console.Console;

/**
 * @author Sergio Esteves (sesteves at gsd.inesc-id.pt)
 *
 */
public class ShowNMaxTasksCachedCommand extends Command {

	public static final String CMD_NAME = "show_max_ctasks";
	
	public ShowNMaxTasksCachedCommand(Console console) {
		super(console);
	}

	@Override
	public void execute(String[] args) throws CommandException {	
		console.writeln("Maximum number of cached tasks: " + gridP2P.getNMaxCachedTasks());
	}

	@Override
	public String getCmdName() {
		return CMD_NAME;
	}

	@Override
	public String synopsis() {
		return CMD_NAME + SYNTAX_SEPARATOR +
			"shows the maximum number of cached tasks";
	}
}
